<?php

Route::group(['prefix' => 'admin'], function () {
    Route::get('comcreate', 'Admin\UserController@comcreate');
    Route::get('residentcreate', 'Admin\UserController@residentcreate');
    Route::get('tttt', 'Api\SmallplaceController@tttt');
    Route::post('message/uploadfile', 'Admin\MessageController@uploadfile');
    Route::get('daping/winner', 'Admin\UserController@winner');
    Route::get('daping/daping_community', 'Admin\UserController@daping_community');
    Route::get('daping/daping_yinhuan', 'Admin\UserController@daping_yinhuan');
    Route::get('daping/daping_base', 'Admin\UserController@daping_base');
    Route::get('daping/daping_tag', 'Admin\UserController@daping_tag');
    Route::get('daping/daping_demand', 'Admin\UserController@daping_demand');
    Route::get('daping/daping_company', 'Admin\MapController@daping_company');
    Route::get('daping/daping_jujia', 'Admin\UserController@daping_jujia');
    Route::get('daping/daping_warehouse', 'Admin\UserController@daping_warehouse');
    //admin跟api共用
    Route::group(['middleware' => ['auth.admin','auth:admin']], function () {
        // 物资分类
        Route::any('goods/goodslistdata', 'Api\GoodsController@goodslistdata')->name('Api.goods.goodslistdata');
        Route::any('goods/exportone','Api\GoodsController@exportone')->name('Api.goods.exportone');
        Route::any('goods/downloadUrl','Api\GoodsController@downloadUrl')->name('Api.goods.downloadUrl');
        Route::any('goods/referweb','Api\GoodsController@referweb')->name('Api.goods.referweb');
        Route::any('goods/goodsdo','Api\GoodsController@goodsdo')->name('Api.goods.goodsdo');
        Route::any('goods/goodsdelete','Api\GoodsController@goodsdelete')->name('Api.goods.goodsdelete');
        Route::any('goods/goods_all','Api\GoodsController@goods_all')->name('Api.goods.goods_all');
        Route::any('goods/getcount','Api\GoodsController@getcount')->name('Api.goods.getcount');
        // 物资名称
        Route::any('materialList/list_data', 'Api\MaterialListController@list_data')->name('Api.materialList.list_data');
        Route::any('materialList/exportone','Api\MaterialListController@exportone')->name('Api.materialList.exportone');
        Route::any('materialList/referweb','Api\MaterialListController@referweb')->name('Api.materialList.referweb');
        Route::any('materialList/refer','Api\MaterialListController@refer')->name('Api.materialList.refer');
        Route::any('materialList/delete','Api\MaterialListController@delete')->name('Api.materialList.delete');
        Route::any('materialList/material_all','Api\MaterialListController@material_all')->name('Api.materialList.material_all');
        Route::any('materialList/exportoneBygid','Api\MaterialListController@exportoneBygid')->name('Api.materialList.exportoneBygid');
        // 物资库存，入库，入库明细
        Route::any('warehouseMaterials/warehouseMaterialslistdata', 'Api\WarehouseMaterialsController@warehouseMaterialslistdata')->name('Api.warehouseMaterials.warehouseMaterialslistdata');
        Route::any('warehouseMaterials/warehouseMaterialsexportone','Api\WarehouseMaterialsController@warehouseMaterialsexportone')->name('Api.warehouseMaterials.warehouseMaterialsexportone');
        Route::any('warehouseMaterials/referweb','Api\WarehouseMaterialsController@referweb')->name('Api.warehouseMaterials.referweb');
        Route::any('warehouseMaterials/warehouseMaterialsRefer','Api\WarehouseMaterialsController@warehouseMaterialsRefer')->name('Api.warehouseMaterials.warehouseMaterialsRefer');
        Route::any('warehouseMaterials/material_del','Api\WarehouseMaterialsController@material_del')->name('Api.warehouseMaterials.material_del');
        Route::any('warehouseMaterials/warehouseOrderListData','Api\WarehouseMaterialsController@warehouseOrderListData')->name('Api.warehouseMaterials.warehouseOrderListData');
        Route::any('warehouseMaterials/warehouseOrderExportone','Api\WarehouseMaterialsController@warehouseOrderExportone')->name('Api.warehouseMaterials.warehouseOrderExportone');
        Route::any('warehouseMaterials/warehouseOrderData','Api\WarehouseMaterialsController@warehouseOrderData')->name('Api.warehouseMaterials.warehouseOrderData');
        //Route::any('warehouseMaterials/storage_import','Api\WarehouseMaterialsController@storage_import')->name('Api.warehouseMaterials.storage_import');
        Route::any('warehouseMaterials/storage_import','Api\WarehouseMaterialsController@storage_import_url')->name('Api.warehouseMaterials.storage_import');
        Route::any('warehouseMaterials/warehouse_type_all','Api\WarehouseMaterialsController@warehouse_type_all')->name('Api.warehouseMaterials.warehouse_type_all');

        //物资明细
        Route::any('stock/stocklistdata', 'Api\StockController@stocklistdata')->name('Api.stock.stocklistdata');
        Route::any('stock/stocklistdatatoadd', 'Api\StockController@stocklistdatatoadd')->name('Api.stock.stocklistdatatoadd');
        Route::any('stock/stockexportone','Api\StockController@stockexportone')->name('Api.stock.stockexportone');
        Route::any('stock/materials_trend','Api\StockController@materials_trend')->name('Api.stock.materials_trend');
        Route::any('stock/trend_exportone','Api\StockController@trend_exportone')->name('Api.stock.trend_exportone');
        Route::any('stock/checkcategory_all','Api\StockController@checkcategory_all')->name('Api.stock.checkcategory_all');
        Route::any('stock/company_all','Api\StockController@company_all')->name('Api.stock.company_all');
        Route::any('stock/status_all','Api\StockController@status_all')->name('Api.stock.status_all');
        Route::any('stock/getdetailall','Api\StockController@getdetailall')->name('Api.stock.getdetailall');
        Route::any('stock/getstockid','Api\StockController@getstockid')->name('Api.stock.getstockid');
        //物资出库
        Route::any('warehouseOutbound/listData', 'Api\WarehouseOutboundController@listData')->name('Api.warehouseOutbound.listData');
        Route::any('warehouseOutbound/exportone','Api\WarehouseOutboundController@exportone')->name('Api.warehouseOutbound.exportone');
        Route::any('warehouseOutbound/outboundOrderData','Api\WarehouseOutboundController@outboundOrderData')->name('Api.warehouseOutbound.outboundOrderData');
        Route::any('warehouseOutbound/referweb','Api\WarehouseOutboundController@referweb')->name('Api.warehouseOutbound.referweb');
        Route::any('warehouseOutbound/refer','Api\WarehouseOutboundController@refer')->name('Api.warehouseOutbound.refer');
        Route::any('warehouseOutbound/outbound_del','Api\WarehouseOutboundController@outbound_del')->name('Api.warehouseOutbound.outbound_del');
        //Route::any('warehouseOutbound/outbound_import','Api\WarehouseOutboundController@outbound_import')->name('Api.warehouseOutbound.outbound_import');
        Route::any('warehouseOutbound/outbound_import','Api\WarehouseOutboundController@outbound_import_url')->name('Api.warehouseOutbound.outbound_import');
        Route::any('upload/uploadimg','Api\UploadController@uploadImg');
        Route::any('upload/uploadAll','Api\UploadController@uploadAll');
        //后台视频课件管理
        Route::any('video/dataList','Admin\VideoController@dataList')->name('admin.video.dataList');
        Route::any('video/referweb','Admin\VideoController@referweb')->name('admin.video.referweb');
        Route::any('video/videosdo','Admin\VideoController@videosdo')->name('admin.video.videosdo');
        Route::any('video/delete','Admin\VideoController@delete')->name('admin.video.delete');
        Route::any('video/push','Admin\VideoController@push')->name('admin.video.push');
        Route::any('video/status_all','Admin\VideoController@status_all')->name('admin.video.status_all');
        Route::any('video/pushList','Admin\VideoController@pushList')->name('admin.video.pushList');

        // 晨会、早课管理
        Route::any('meet/listdata', 'Api\MeetController@listdata')->name('Api.meet.listdata');
        Route::any('meet/exportone','Api\MeetController@exportone')->name('Api.meet.exportone');
        Route::any('meet/referweb','Api\MeetController@referweb')->name('Api.meet.referweb');
        Route::any('meet/meetsdo','Api\MeetController@meetsdo')->name('Api.meet.meetsdo');
        Route::any('meet/del','Api\MeetController@del')->name('Api.meet.del');
        Route::any('meet/comlist_pro','Api\MeetController@comlist_pro')->name('Api.meet.comlist_pro');
        Route::any('meet/comlistdata','Api\MeetController@comlistdata')->name('Api.meet.comlistdata');
        Route::any('meet/comexportone','Api\MeetController@comexportone')->name('Api.meet.comexportone');
    });
    Route::group(['middleware' => 'auth.admin'], function () {
        Route::get('/', 'Admin\IndexController@index');
        Route::get('tongji', 'Admin\UserController@tongji')->name('admin.tongji');
        Route::get('tongjidata', 'Admin\UserController@tongjidata')->name('admin.tongjidata');
        // 自定义字段
        Route::get('getfieldcom', 'Admin\UserController@getfieldcom');
        Route::post('addfieldcom', 'Admin\UserController@addfieldcom');
        Route::post('delfieldcom', 'Admin\UserController@delfieldcom');
        Route::post('editfieldcom', 'Admin\UserController@editfieldcom');
        Route::get('getfieldresident', 'Admin\UserController@getfieldresident');
        Route::post('addfieldresident', 'Admin\UserController@addfieldresident');
        Route::post('delfieldresident', 'Admin\UserController@delfieldresident');
        Route::post('editfieldresident', 'Admin\UserController@editfieldresident');
        
        
        /*地图*/
	    Route::get('map', 'Admin\MapController@index')->name('admin_map');
        Route::get('mapall', 'Admin\MapController@indexall')->name('admin_mapall');
        Route::get('map3', 'Admin\MapController@index3')->name('admin_map3');
        Route::get('map2', 'Admin\MapController@index2')->name('admin.map.index2');
	    Route::get('getAllCompany', 'Admin\MapController@getAllCompany')->name('admin_get_allcompany');
        Route::get('getAllCompany3', 'Admin\MapController@getAllCompany3');
	    Route::get('getCompany', 'Admin\MapController@getCompany')->name('admin_get_company');
	    Route::get('getCheckLogs', 'Admin\MapController@getCheckLogs')->name("admin_get_checklogs");
        // 大屏接口
        Route::get('daping/index', 'Admin\UserController@daping');
        // Route::get('daping/winner', 'Admin\UserController@winner');


	    /*地图-获取所有社区点*/
	    Route::get('getCommunity', 'Admin\MapController@getCommunity')->name('admin_get_community');
	    /*地图-根据社区获取公司数量*/
	    Route::get('getCompanyNum', 'Admin\MapController@getCompanyNum')->name('admin_get_company_num');
	    /*地图-根据社区获取隐患数量*/
	    Route::get('getDangersNum', 'Admin\MapController@getDangersNum')->name('admin_get_dangers_num');
	    /*地图-获取企业监管数量*/
	    Route::get('getSuperviseCompanyNum', 'Admin\MapController@getSuperviseCompanyNum')->name('admin_get_supervisecom_num');
	    /*网格化*/
	    Route::get('grid', 'Admin\GridController@index')->name('admin_grid');
	    Route::get('getPointsNum', 'Admin\GridController@getPointsNum')->name('admin_get_points_num');
	    /*网格化-获取所有网格点*/
	    Route::get('getAllPoints', 'Admin\GridController@getAllPoints')->name('admin_get_all_points');
	    /*网格化-保存网格点*/
	    Route::post('addPoints', 'Admin\GridController@addPoints')->name('admin_add_points');
	    /*网格化-删除网格区域点*/
	    Route::post('deletePoints', 'Admin\GridController@deletePoints')->name('admin_delete_points');
	    /*网格化-获取区域的下级*/
	    Route::get('getChildPoints', 'Admin\GridController@getChildPoints')->name('admin_get_child_points');

	    Route::get('logout', 'Admin\LoginController@logout');

        Route::get('work/reportlist', 'Admin\WorkController@reportlist');
        Route::get('work/reportlistcontent', 'Admin\WorkController@reportlistcontent');
        Route::get('work/exportwinner', 'Admin\UserController@exportwinner')->name('admin.work.exportwinner');
        Route::get('work/exportmeiqi', 'Admin\UserController@exportmeiqi')->name('admin.work.exportmeiqi');
        

        Route::get('work/reportone', 'Admin\WorkController@reportone');
        Route::get('work/reportones', 'Admin\WorkController@reportones');

        Route::get('company/selfentrylist','Admin\WorkController@selfentrylist')->name('admin.company.selfentrylist');
        Route::get('work/selfentrylistdata', 'Admin\WorkController@selfentrylistdata')->name('admin.comp.selfentrylistdata');
        Route::get('work/selfentryimages', 'Admin\WorkController@selfentryimages')->name('admin.comp.selfentryimages');

        Route::get('work/reportexport', 'Admin\WorkController@reportexport');
        Route::get('work/detailexport', 'Admin\WorkController@detailexport');
        Route::get('work/checktimesreport', 'Admin\WorkController@checktimesreport');
        Route::get('work/chart', 'Admin\WorkController@chart');
        Route::get('work/chartcontent', 'Admin\WorkController@chartcontent');
        Route::get('work/checkchart', 'Admin\WorkController@checkchart');
        Route::get('work/checkchartcontent', 'Admin\WorkController@checkchartcontent');
        Route::get('work/firstcheckchart', 'Admin\WorkController@firstcheckchart');
        Route::get('work/test', 'Admin\WorkController@test');
        Route::get('work/checktimes', 'Admin\WorkController@checktimes');
        Route::get('work/checktimescontent', 'Admin\WorkController@checktimescontent');

        /*word管理-首页*/
        Route::get('word', 'Admin\WordController@index')->name('admin_word');
        Route::get('word/getCommunity', 'Admin\WordController@getCommunity')->name('admin_word_get_community');
        Route::get('word/batchDownload', 'Admin\WordController@batchDownload')->name('admin_word_batch_download');
        /*文档管理*/
        Route::get('wordmanage', 'Admin\WordController@getAllStreet')->name('admin_word_manage');
        Route::get('word/getStreetCommunity', 'Admin\WordController@getSteetCommunity')->name('admin_word_get_street_community');
        Route::get('word/getCategory', 'Admin\WordController@getCategory')->name('admin_word_get_category');
        Route::get('word/list', 'Admin\WordController@getWords')->name('admin_word_list');


        // 用户管理
        Route::get('user/userlist', 'Admin\UserController@userlist')->name('admin.user.userlist');
        
        Route::get('user/userlist2', 'Admin\UserController@userlist2')->name('admin.user.userlist2');
        Route::get('user/rolelist', 'Admin\UserController@rolelist')->name('admin.user.rolelist');
        Route::get('user/getrolelistdata', 'Admin\UserController@getrolelistdata')->name('admin.user.rolelistdata');
        Route::get('user/getrolelistdata2', 'Admin\UserController@getrolelistdata2')->name('admin.user.rolelistdata2');
        Route::get('user/getuserlistdata', 'Admin\UserController@getuserlistdata')->name('admin.user.data');
        Route::any('user/adduser', 'Admin\UserController@adduser')->name('admin.user.adduser');
        Route::any('user/addcomuser', 'Admin\UserController@addcomuser')->name('admin.user.addcomuser');
        Route::any('user/addgovuser', 'Admin\UserController@addgovuser')->name('admin.user.addgovuser');
        Route::post('user/delctl','Admin\UserController@delctl');
        Route::post('user/resetpwd','Admin\UserController@resetpwd');
        Route::any('user/useredit','Admin\UserController@useredit')->name('admin.user.useredit');
        Route::any('user/editpwd','Admin\UserController@editpwd')->name('admin.user.editpwd');
        Route::get('user/getjobjson', 'Admin\UserController@getjobjson')->name('admin.user.getjobjson');
        Route::get('user/getdepjson', 'Admin\UserController@getdepjson')->name('admin.user.getdepjson');

        Route::get('user/report', 'Admin\UserController@report')->name('admin.user.report');
        Route::get('user/reportlist', 'Admin\UserController@reportlist')->name('admin.user.reportlist');

        Route::get('user/module1', 'Admin\UserController@module1')->name('admin.user.module1');
        Route::get('user/module2', 'Admin\UserController@module2')->name('admin.user.module2');
        Route::get('user/module3', 'Admin\UserController@module3')->name('admin.user.module3');
        Route::get('user/module4', 'Admin\UserController@module4')->name('admin.user.module4');
        Route::get('user/module5', 'Admin\UserController@module5')->name('admin.user.module5');
        Route::get('user/module6', 'Admin\UserController@module6')->name('admin.user.module6');
        Route::get('user/system', 'Admin\UserController@system')->name('admin.user.system');
        Route::get('user/warehouse', 'Admin\UserController@warehouse')->name('admin.user.warehouse');

        Route::post('chgresident', 'Admin\UserController@chgresident')->name('admin.user.chgresident');
        Route::get('getresident', 'Admin\UserController@getresident')->name('admin.user.getresident');
        //用户权限管理
        Route::get('user/role', 'Admin\UserController@role')->name('admin.user.role');
        Route::put('user/{id}/assignRolemenu', 'Admin\UserController@assignRolemenu')->name('admin.user.assignRolemenu');
        //角色权限管理
        Route::get('user/rolemenu', 'Admin\UserController@rolemenu')->name('admin.user.rolemenu');
        Route::put('user/{id}/assignUsermenu', 'Admin\UserController@assignUsermenu')->name('admin.user.assignUsermenu');
        //用户权限管理
        Route::get('user/usermenu', 'Admin\UserController@usermenu')->name('admin.user.usermenu');
        Route::put('user/{id}/assignRole', 'Admin\UserController@assignRole')->name('admin.user.assignRole');
        //用户角色管理
        Route::get('user/userrole', 'Admin\UserController@userrole')->name('admin.user.userrole');
        Route::get('user/userrole2', 'Admin\UserController@userrole2')->name('admin.user.userrole2');
        Route::put('user/{id}/assignUserrole', 'Admin\UserController@assignUserrole')->name('admin.user.assignUserrole');
        Route::put('user/{id}/assignUserrole2', 'Admin\UserController@assignUserrole2')->name('admin.user.assignUserrole2');
        //添加人员
        Route::any('department/adddepartment','Admin\DepartmentController@adddepartment')->name('admin.department.adddepartment');
        Route::any('department/addstreetuser','Admin\DepartmentController@addstreetuser')->name('admin.department.addstreetuser');
        Route::get('getuserroleinfo', 'Admin\UserController@getuserroleinfo');
        Route::any('user/getUser', 'Admin\UserController@getUser')->name('admin.user.getUser');



        Route::get('user/deplist', 'Admin\UserController@deplist')->name('admin.user.deplist');
        Route::get('user/joblist', 'Admin\UserController@joblist')->name('admin.user.joblist');
        Route::get('user/comfield', 'Admin\UserController@comfield')->name('admin.user.comfield');
        Route::get('user/residentfield', 'Admin\UserController@residentfield')->name('admin.user.residentfield');


        Route::any('user/addrole', 'Admin\UserController@addrole')->name('admin.user.addrole');
        Route::any('user/roleedit','Admin\UserController@roleedit')->name('admin.user.roleedit');
        Route::post('user/delrole','Admin\UserController@delrole');

        Route::any('user/adddep', 'Admin\UserController@adddep')->name('admin.user.adddep');
        Route::get('user/getdeplistdata', 'Admin\UserController@getdeplistdata')->name('admin.user.deplistdata');
        Route::post('user/deldep','Admin\UserController@deldep');
        Route::any('user/depedit','Admin\UserController@depedit')->name('admin.user.depedit');
        Route::any('user/addjob', 'Admin\UserController@addjob')->name('admin.user.addjob');
        Route::get('user/getjoblistdata', 'Admin\UserController@getjoblistdata')->name('admin.user.joblistdata');
        Route::post('user/deljob','Admin\UserController@deljob');
        Route::any('user/jobedit','Admin\UserController@jobedit')->name('admin.user.jobedit');

        // 消息列表
        Route::get('msg/msglist', 'Admin\UserController@msglist')->name('admin.msg.msglist');
        Route::any('msg/addmsg', 'Admin\UserController@addmsg')->name('admin.msg.addmsg');
        Route::get('msg/addmsg2', 'Admin\UserController@addmsg2')->name('admin.msg.addmsg2');
        Route::get('msg/getmsglistdata', 'Admin\UserController@getmsglistdata')->name('admin.msg.data');
        Route::get('msg/getmsgusers', 'Admin\UserController@getmsgusers');
        Route::get('msg/getmsgusers2', 'Admin\UserController@getmsgusers2');
        Route::get('msg/gettypeusers', 'Admin\UserController@gettypeusers');




        // Route::get('msg/msglist', 'Admin\UserController@msglist')->name('admin.msg.msglist');
        // Route::get('msg/getmsglistdata', 'Admin\UserController@getmsglistdata')->name('admin.msg.data');
        // Route::any('msg/addmsg', 'Admin\msgController@addmsg')->name('admin.msg.addmsg');
        // Route::any('msg/addcommsg', 'Admin\msgController@addcommsg')->name('admin.msg.addcommsg');
        // Route::any('msg/addgovmsg', 'Admin\msgController@addgovmsg')->name('admin.msg.addgovmsg');
        // Route::post('msg/delctl','Admin\msgController@delctl');
        // Route::post('msg/resetpwd','Admin\msgController@resetpwd');
        // Route::any('msg/msgedit','Admin\msgController@msgedit')->name('admin.msg.msgedit');
        
        // 公司信息管理
        // 自查
        Route::get('company/comlist','Admin\UserController@comlist')->name('admin.company.comlist');

        Route::get('company/comlist_pro','Admin\UserController@comlist_pro')->name('admin.company.comlist_pro');
        // 修改
        Route::get('company/comlist1','Admin\UserController@comlist1')->name('admin.company.comlist1');
        Route::get('company/exportnum1','Admin\UserController@exportnum1')->name('admin.company.exportnum1');
        Route::get('company/exportnum2','Admin\UserController@exportnum2')->name('admin.company.exportnum2');
        // 修改 pro
        Route::get('company/comlist1_pro','Admin\UserController@comlist1_pro')->name('admin.company.comlist1_pro');
        // 学习
        Route::get('company/comlist2','Admin\UserController@comlist2')->name('admin.company.comlist2');
        Route::get('com/comlistdata', 'Admin\UserController@comlistdata')->name('admin.com.data');

        Route::any('com/comedit','Admin\UserController@comedit')->name('admin.com.comedit');
        Route::post('com/savetag','Admin\UserController@savetag');
        Route::get('com/gettaglist','Admin\UserController@gettaglist');

        Route::get('company/residentlist','Admin\UserController@residentlist')->name('admin.company.residentlist');
        Route::get('company/residentlist1','Admin\UserController@residentlist1')->name('admin.company.residentlist1');
        Route::get('company/residentlist1_pro','Admin\UserController@residentlist1_pro')->name('admin.company.residentlist1_pro');
        Route::get('company/residentlist2','Admin\UserController@residentlist2')->name('admin.company.residentlist2');
        Route::get('com/residentlistdata', 'Admin\UserController@residentlistdata')->name('admin.resident.data');
        Route::any('com/residentedit','Admin\UserController@residentedit')->name('admin.com.residentedit');

        // 用户自查自己看学习情况
        Route::get('selfWatchRecords/reportlist','Admin\SelfWatchRecordsController@reportlist')->name('admin.selfWatchRecords.reportlist');
        Route::get('selfWatchRecords/reportlistdata', 'Admin\SelfWatchRecordsController@reportlistdata')->name('admin.selfWatchRecords.reportlistdata');
        Route::get('selfWatchRecords/exportone','Admin\SelfWatchRecordsController@exportone')->name('admin.selfWatchRecords.exportone');
        Route::get('selfWatchRecords/statisticslist','Admin\SelfWatchRecordsController@statisticslist')->name('admin.selfWatchRecords.statisticslist');
        Route::get('selfWatchRecords/statisticslistdata', 'Admin\SelfWatchRecordsController@statisticslistdata')->name('admin.selfWatchRecords.statisticslistdata');
        Route::any('selfWatchRecords/statisticsedit','Admin\SelfWatchRecordsController@statisticsedit')->name('admin.selfWatchRecords.statisticsedit');
        // 隐患排查消息
        Route::get('demand/dangerlist','Admin\DemandController@dangerlist')->name('admin.demand.dangerlist');
        Route::get('demand/dangerlistdata', 'Admin\DemandController@dangerlistdata')->name('admin.demand.dangerlistdata');
        Route::any('demand/replay','Admin\DemandController@replay')->name('admin.demand.replay');
        Route::get('demand/exportone','Admin\DemandController@exportone')->name('admin.demand.exportone');

        // 获取 省市区街道 四级联动 json
        Route::post('area/getjson','Admin\UserController@getareajson')->name('admin.area.data');
        // Route::any('user/adduser', 'Admin\UserController@adduser')->name('admin.user.adduser');
        // Route::any('user/addcomuser', 'Admin\UserController@addcomuser')->name('admin.user.addcomuser');
        // Route::any('user/addgovuser', 'Admin\UserController@addgovuser')->name('admin.user.addgovuser');
        // Route::post('user/delctl','Admin\UserController@delctl');
        // Route::post('user/resetpwd','Admin\UserController@resetpwd');
        
		Route::post('scompany/update_pc', 'Api\SmallplaceController@update_pc')->name('admin.scompany.update_pc');
		/**/
		Route::get('staff/index', 'Admin\StaffController@index');
        Route::get('staff/index2', 'Admin\StaffController@index2');
		Route::get('staff/data', 'Admin\StaffController@data')->name('admin.staff.data');
		Route::get('staff/details', 'Admin\StaffController@details')->name('admin.staff.details');
		Route::get('staff/statistics', 'Admin\StaffController@statistics')->name('admin.staff.statistics');
		Route::get('staff/export', 'Admin\StaffController@export')->name('admin.staff.export');
		Route::any('staff/trajectory', 'Admin\StaffController@trajectory')->name('admin.staff.trajectory');
		Route::any('staff/daochu', 'Admin\StaffController@daochu')->name('admin.staff.daochu');
		Route::any('staff/leave', 'Admin\StaffController@leave')->name('admin.staff.leave');
		Route::any('staff/examine', 'Admin\StaffController@examine')->name('admin.staff.examine');

        /**
         * 考试页面
         */
        Route::get('examview/live', 'Admin\ExamviewController@live')->name('admin.examview.live');
        Route::get('examview/liveadd', 'Admin\ExamviewController@liveadd')->name('admin.examview.liveadd');
        Route::get('examview/course', 'Admin\ExamviewController@course')->name('admin.examview.course');
        Route::get('examview/courseadd', 'Admin\ExamviewController@courseadd')->name('admin.examview.courseadd');
        Route::get('examview/video', 'Admin\ExamviewController@video')->name('admin.examview.video');
        Route::get('examview/videoadd', 'Admin\ExamviewController@videoadd')->name('admin.examview.videoadd');
        Route::get('examview/index', 'Admin\ExamviewController@index')->name('admin.examview.index');
        Route::get('examview/list', 'Admin\ExamviewController@list')->name('admin.examview.list');
        Route::get('examview/addsubject', 'Admin\ExamviewController@addsubject')->name('admin.examview.addsubject');
        Route::get('examview/category', 'Admin\ExamviewController@category')->name('admin.examview.category');
        Route::get('examview/editsubject', 'Admin\ExamviewController@editsubject')->name('admin.examview.editsubject');
        Route::get('examview/addexam', 'Admin\ExamviewController@addexam')->name('admin.examview.addexam');
        Route::get('examview/cidlist', 'Admin\ExamviewController@cidlist')->name('admin.examview.cidlist');
        Route::get('examview/addcidlist', 'Admin\ExamviewController@addcidlist')->name('admin.examview.addcidlist');
        Route::get('examview/userpaper', 'Admin\ExamviewController@userpaper')->name('admin.examview.userpaper');
        Route::get('examview/paperShow', 'Admin\ExamviewController@paperShow')->name('admin.examview.paperShow');
        Route::get('examview/question', 'Admin\ExamviewController@question')->name('admin.examview.question');
        Route::get('examview/questionadd', 'Admin\ExamviewController@questionadd')->name('admin.examview.questionadd');
        Route::get('examview/papercidlist', 'Admin\ExamviewController@papercidlist')->name('admin.examview.papercidlist');
        Route::get('examview/paperaddcidlist', 'Admin\ExamviewController@paperaddcidlist')->name('admin.examview.paperaddcidlist');

        //同需求
        Route::get('examview/samedemand', 'Admin\ExamviewController@samedemand')->name('admin.examview.samedemand');
        //随手拍
        Route::get('examview/samerandomclap', 'Admin\ExamviewController@samerandomclap')->name('admin.examview.samerandomclap');
        //历史记录
        Route::get('examview/history', 'Admin\ExamviewController@history')->name('admin.examview.history');

        // 试题分类
        Route::post('exam/category_index', 'Admin\ExamController@category_index');
        Route::post('exam/category_edit', 'Admin\ExamController@category_edit');
        Route::post('exam/category_del', 'Admin\ExamController@category_del');
        // 试题
        Route::post('exam/edit', 'Admin\ExamController@edit');
        Route::post('exam/index', 'Admin\ExamController@index');
        Route::post('exam/del', 'Admin\ExamController@del');
        Route::get('exam/detail', 'Admin\ExamController@get_exam_data');


        // 试卷分类
        Route::get('paper/category_index', 'Admin\ExamController@paper_category_index');
        Route::post('paper/category_edit', 'Admin\ExamController@paper_category_edit');
        Route::post('paper/category_del', 'Admin\ExamController@paper_category_del');
        // 试卷
        Route::post('paper/edit', 'Admin\ExamController@paper_edit');
        Route::post('paper/index', 'Admin\ExamController@paper_index');
        Route::post('paper/del', 'Admin\ExamController@paper_del');

        // 组卷
        Route::post('paper/questions_add', 'Admin\ExamController@questions_add');
        Route::post('paper/questions_del', 'Admin\ExamController@questions_del');
        Route::post('paper/questions_index', 'Admin\ExamController@questions_index');
        // 考试记录
        Route::post('paper/paper_record', 'Admin\ExamController@paper_record');
        // 考试记录试题详情
        Route::post('paper/paper_record_detail', 'Admin\ExamController@paper_record_detail');

        //物资页面
        Route::get('warehouse/index', 'Admin\WarehouseController@index')->name('admin.warehouse.index');
        Route::get('warehouse/stockcontrol', 'Admin\WarehouseController@stockcontrol')->name('admin.warehouse.stockcontrol');
        Route::get('warehouse/stockcontrolcom', 'Admin\WarehouseController@stockcontrolcom')->name('admin.warehouse.stockcontrolcom');
        Route::get('warehouse/materialdetails', 'Admin\WarehouseController@materialdetails')->name('admin.warehouse.materialdetails');
        Route::get('warehouse/materialdetail', 'Admin\WarehouseController@materialdetail')->name('admin.warehouse.materialdetail');
        Route::get('warehouse/materiallist', 'Admin\WarehouseController@materiallist')->name('admin.warehouse.materiallist');
        Route::get('warehouse/referweb', 'Admin\WarehouseController@referweb')->name('admin.warehouse.referweb');
        Route::get('warehouse/outbound', 'Admin\WarehouseController@outbound')->name('admin.warehouse.outbound');
        Route::get('warehouse/outboundadd', 'Admin\WarehouseController@outboundadd')->name('admin.warehouse.outboundadd');
        Route::get('warehouse/checkview', 'Admin\WarehouseController@checkview')->name('admin.warehouse.checkview');
        Route::get('warehouse/checkaddview', 'Admin\WarehouseController@checkaddview')->name('admin.warehouse.checkaddview');
        Route::get('warehouse/orderlistdata', 'Admin\WarehouseController@orderlistdata')->name('admin.warehouse.orderlistdata');
        Route::get('warehouse/repairview', 'Admin\WarehouseController@repairview')->name('admin.warehouse.repairview');
        Route::get('warehouse/repairaddview', 'Admin\WarehouseController@repairaddview')->name('admin.warehouse.repairaddview');
        Route::get('warehouse/maintainview', 'Admin\WarehouseController@maintainview')->name('admin.warehouse.maintainview');
        Route::get('warehouse/maintainaddview', 'Admin\WarehouseController@maintainaddview')->name('admin.warehouse.maintainaddview');
        Route::get('warehouse/checkEdit', 'Admin\WarehouseController@checkEdit')->name('admin.warehouse.checkEdit');
        Route::get('warehouse/OutboundEdit', 'Admin\WarehouseController@OutboundEdit')->name('admin.warehouse.OutboundEdit');
        Route::get('warehouse/outboundone', 'Admin\WarehouseController@outboundone')->name('admin.warehouse.outboundone');
        Route::get('warehouse/outboundtwo', 'Admin\WarehouseController@outboundtwo')->name('admin.warehouse.outboundtwo');
        Route::get('warehouse/outboundthree', 'Admin\WarehouseController@outboundthree')->name('admin.warehouse.outboundthree');
        Route::get('warehouse/outboundfour', 'Admin\WarehouseController@outboundfour')->name('admin.warehouse.outboundfour');
        Route::get('warehouse/returnIn', 'Admin\WarehouseController@returnIn')->name('admin.warehouse.returnIn');
        Route::get('warehouse/editReferweb', 'Admin\WarehouseController@editReferweb')->name('admin.warehouse.editReferweb');
        // 物资的盘点，维修，保养
        // 查询物资列表
        Route::get('goods/list', 'Admin\MaintenanceController@get_goods_list');
        // 查询企业分类列表
        Route::get('category/list', 'Admin\MaintenanceController@get_category_list');
        // 查询企业列表
        Route::get('company/list', 'Admin\MaintenanceController@get_company_list');
        // 查询物资分类
        
        Route::get('goods/category', 'Admin\MaintenanceController@category');
        Route::get('user/list', 'Admin\MaintenanceController@check_user');
        

        
        
        Route::get('file_exist', 'Admin\MaintenanceController@file_exist');
        // 盘点 列表+添加+删除
        Route::get('check/list', 'Admin\MaintenanceController@check_records');
        Route::post('check/edit', 'Admin\MaintenanceController@check_records_edit');
        Route::get('check/data', 'Admin\MaintenanceController@check_edit_data');
        Route::get('check/delete', 'Admin\MaintenanceController@check_delete');
        Route::get('check/excel_url', 'Admin\MaintenanceController@get_excel_url_check');//导出excel
        // 

        // 维修 列表+添加+删除
        Route::get('repair/list', 'Admin\MaintenanceController@repair_records');
        Route::post('repair/edit', 'Admin\MaintenanceController@repair_records_edit');
        Route::get('repair/data', 'Admin\MaintenanceController@repair_edit_data');
        Route::get('repair/delete', 'Admin\MaintenanceController@repair_delete');
        Route::get('repair/excel_url', 'Admin\MaintenanceController@get_excel_url_repair');//导出excel
        
        // 保养 列表+添加+删除
        Route::get('maintain/list', 'Admin\MaintenanceController@maintain_records');
        Route::post('maintain/edit', 'Admin\MaintenanceController@maintain_records_edit');
        Route::get('maintain/data', 'Admin\MaintenanceController@maintain_edit_data');
        Route::get('maintain/delete', 'Admin\MaintenanceController@maintain_delete');
        Route::get('maintain/excel_url', 'Admin\MaintenanceController@get_excel_url_maintain');//导出excel

        // 盘点出库入库的查询
        
        Route::any('check/materials_data', 'Admin\MaintenanceController@materials_data');
       
        // 随手拍
        Route::any('records/list', 'Admin\DangerrecordsController@list');
        Route::any('records/data', 'Admin\DangerrecordsController@data');
        Route::any('records/delete', 'Admin\DangerrecordsController@delete');
        Route::any('records/user_list', 'Admin\DangerrecordsController@user_list');
        Route::any('records/user_assign', 'Admin\DangerrecordsController@user_assign');
        Route::any('getHtml', 'Admin\MaintenanceController@getHtml');
        // 物资库存
        Route::get('stock/list','Admin\StockController@list')->name('admin.stock.list');
        Route::get('stock/data', 'Admin\StockController@data')->name('admin.stock.data');

    });

    Route::get('login', 'Admin\LoginController@showLoginForm')->name('admin.login');
    Route::post('login', 'Admin\LoginController@login');
    // 注册
    Route::get('register', 'Admin\LoginController@showRegister')->name('admin.register');
    Route::post('register', 'Admin\LoginController@register');
});